]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
notificationDaemon: Store tray-icon-added/removed ids
authorAdel Gadllah <adel.gadllah@gmail.com>
Sat, 6 Oct 2012 14:10:03 +0000 (16:10 +0200)
committerAdel Gadllah <adel.gadllah@gmail.com>
Sat, 6 Oct 2012 14:11:54 +0000 (16:11 +0200)
This allows extensions to reuse the trayManager.

js/ui/notificationDaemon.js

index 2e800b3a4d3cf377ee2e7c2856fc8a02b2312018..6d2fd6d8972825869fd6ee6349bf8697dafed167 100644 (file)
@@ -116,8 +116,8 @@ const NotificationDaemon = new Lang.Class({
         this._busProxy = new Bus();
 
         this._trayManager = new Shell.TrayManager();
-        this._trayManager.connect('tray-icon-added', Lang.bind(this, this._onTrayIconAdded));
-        this._trayManager.connect('tray-icon-removed', Lang.bind(this, this._onTrayIconRemoved));
+        this._trayIconAddedId = this._trayManager.connect('tray-icon-added', Lang.bind(this, this._onTrayIconAdded));
+        this._trayIconRemovedId = this._trayManager.connect('tray-icon-removed', Lang.bind(this, this._onTrayIconRemoved));
 
         Shell.WindowTracker.get_default().connect('notify::focus-app',
             Lang.bind(this, this._onFocusAppChanged));